package com.bookmarket.entity;

import java.io.Serializable;

/**
 * @author Chen Zhaoguang
 * @date 2017/12/25 19:10
 */
public class Book implements Serializable {
    private int id;
    private String name;
    private String author;//作者
    private String publish;//出版社
    private String publish_date;//出版时间
    private int stock;//库存
    private float price;//价格
    private String picture;//图片
    private  int click;//点击量
    private String  content;//介绍
    private String file;//文件
    private Stype stype;//类型

    public Book() {
    }

    public Book(int id) {
        this.id = id;
    }

    public Book(String name, String author, String publish, String publish_date, int stock, float price, String picture, int click, String content, String file, Stype stype) {
        this.name = name;
        this.author = author;
        this.publish = publish;
        this.publish_date = publish_date;
        this.stock = stock;
        this.price = price;
        this.picture = picture;
        this.click = click;
        this.content = content;
        this.file = file;
        this.stype = stype;
    }

    public Book(int id, String name, String author, String publish, String publish_date, int stock, float price, String picture, int click, String content, String file, Stype stype) {
        this.id = id;
        this.name = name;
        this.author = author;
        this.publish = publish;
        this.publish_date = publish_date;
        this.stock = stock;
        this.price = price;
        this.picture = picture;
        this.click = click;
        this.content = content;
        this.file = file;
        this.stype = stype;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    public String getPublish_date() {
        return publish_date;
    }

    public void setPublish_date(String publish_date) {
        this.publish_date = publish_date;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public int getClick() {
        return click;
    }

    public void setClick(int click) {
        this.click = click;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public Stype getStype() {
        return stype;
    }

    public void setStype(Stype stype) {
        this.stype = stype;
    }
}
